.box {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f8f9fa;
}

.top {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 10px 16px;
  z-index: 10;
}

.search-bar {
  flex: 1;
  border-radius: 8px;
  background: #f1f3f5;
}

.list {
  flex: 1;
  overflow: auto;
  padding: 12px;
}

.waterfall {
  position: relative;
}

.waterfall-item {
  display: block;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 16px;
}

.waterfall-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background: #e9ecef; /* 占位背景 */
}

.waterfall-item-image {
  width: 100%;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: opacity 0.3s ease;
}

.waterfall-item-image[loading="lazy"] {
  opacity: 0.7;
}

.waterfall-item-image:not([loading]) {
  opacity: 1;
}

.waterfall-item-info {
  padding: 12px;
}

.waterfall-item-name {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.waterfall-item-apply {
  display: block;
  font-size: 14px;
  color: #6c757d;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.loading,
.no-data {
  text-align: center;
  font-size: 16px;
  color: #6c757d;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  margin: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 加载动画 */
.loading::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #007bff;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
